
//获取当前时间，格式为2023.11.03
export const getLocalDate =async()=>{
  const now = new Date();
  const year = now.getFullYear();
  const month = now.getMonth() + 1;
  const date = now.getDate();
  const formattedDate = `${year}.${month.toString().padStart(2, '0')}.${date.toString().padStart(2, '0')}`;
  return formattedDate;
}